package com.newoffen.com.testcase;

import com.newoffen.com.check.PlatformCheck;
import com.newoffen.com.driver.Driver;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.Test;

public class PlatformCase extends Driver {
    public String username = "zhaojun";
    public String passwd = "123456";
    public String storeName = "蓝田测试店";
    public String salesclerkName = "test";
    public String code="562378";
    /*
    登录
     */
    @Test(description = "登录、选平台",priority = 1)
    public  void checkCmsLogin() throws Exception{
        PlatformCheck platformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        platformCheck.cmsLogin(ThreadDriver.get(),username,passwd,code);
        platformCheck.choice(ThreadDriver.get());
    }

    @Test(description = "药店搜索、编辑",priority = 1)
    public void checkStore() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.store_search(ThreadDriver.get(),storeName,salesclerkName);
        PlatformCheck.store_edit(ThreadDriver.get());
    }

    @Test(description = "查看结算列表",priority = 1)
    public void checkSettlement() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.settlement(ThreadDriver.get());
    }

    @Test(description = "查看商品列表",priority = 1)
    public void checkGoodsList() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.goodsList(ThreadDriver.get());
    }

    public String goodsName="";
    public String goodsID="";
    public String goodsType="非处方药";
    @Test(description = "商品搜索",priority = 1)
    public void checkGoodsSearch() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.goods_search(ThreadDriver.get(),goodsName,goodsID,goodsType);
    }

    @Test(description = "商品搜索",priority = 1)
    public void checkGoodsUpdate() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.goods_update(ThreadDriver.get());
    }
    @Test(description = "查看订单列表",priority = 1)
    public void checkOrderList() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.orderList(ThreadDriver.get());
    }

    public String searchType="订单编号";
    public String orderNo="S2021051857495098";
    public String payType="";
    public String paySource="";
    @Test(description = "订单搜索",priority = 1)
    public void checkOrderSearch() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.order_search(ThreadDriver.get(),searchType,orderNo,payType,paySource);
    }
    @Test(description = "查看处方笺列表",priority = 1)
    public void checkRxList() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.rxList(ThreadDriver.get());
    }
    public String rxNo="订单编号";
    @Test(description = "处方笺搜索",priority = 1)
    public void checkRXSearch() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.RXSearch(ThreadDriver.get(),rxNo);
    }

    @Test(description = "查看售后订单列表",priority = 1)
    public void checkSaleOrderList() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.afterSaleList(ThreadDriver.get());
    }
    public String saleNo="订单编号";
    @Test(description = "售后订单搜索",priority = 1)
    public void checkSaleOrderSearch() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.saleOrder_search(ThreadDriver.get(),saleNo);
    }
    @Test(description = "查看售后订单列表",priority = 1)
    public void checkRecipeList() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.recipeList(ThreadDriver.get());
    }
    public String state="已开方";
    @Test(description = "售后订单搜索",priority = 1)
    public void checkRecipeSearch() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.recipeSearch(ThreadDriver.get(),state);
    }
    @Test(description = "查看体检报告列表",priority = 1)
    public void checkReportList() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.reportList(ThreadDriver.get());
    }
    public String reportName="小小";
    @Test(description = "体检报告搜索",priority = 1)
    public void checkReportSearch() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.reportSearch(ThreadDriver.get(),reportName);
    }
    @Test(description = "体检报告详情",priority = 1)
    public void checkViewDetail() throws Exception{
        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
        PlatformCheck.viewDetail(ThreadDriver.get());
    }



//    @Test(description = "13日记管理模块",priority=15)
//    public  void rijiguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.riji(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "14精华管理模块",priority=16)
//    public  void jinghuaguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.jinghua(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "15短帖子管理模块",priority=17)
//    public  void iduantieziguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.duantiezi(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "16短视频管理模块",priority=18)
//    public  void duanshipinguanlii() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.duanshipin(ThreadDriver.get(),username,passwd);
//
//    }
//
//
//    /*
//     * 运营管理模块
//     *
//     * */
//    @Test(description = "17话题管理模块",priority=19)
//    public  void huatiguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.hutiguanli(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "18标签树配置模块",priority=20)
//    public  void biaoqianshupeizhi() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.biaoqianshupeizhi(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "19日记本管理模块",priority=21)
//    public  void rijibenguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.rijibenguanli(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "20攻略管理模块",priority=22)
//    public  void gonglveguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.gonglveguanli(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "21频道页管理模块",priority=23)
//    public  void pindaoyeguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.pindaoyeguanli(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "22图文文章管理模块",priority=24)
//    public  void tuwenwenzhangguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.tuwenwenzhangguanli(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "23热门搜索词配置模块",priority=25)
//    public  void remensousuocipeizhi() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.remensousuocipeizhi(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "24商品亮点标签模块",priority=26)
//    public  void gshangpingliangdianbiaoqian() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.shangpingliangdianbiaoqian(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "25首页推荐楼层模块",priority=27)
//    public  void shouyetuijianlouceng() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.shouyetuijianlouceng(ThreadDriver.get(),username,passwd);
//
//    }
//
//
//    /*
//     * 广告位管理模块
//     *
//     * */
//    @Test(description = "26首页feed流模块",priority=28)
//    public  void feed() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.feed(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "27首页广告位模块",priority=29)
//    public  void shouyeguanggaowei() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.shouyeguanggaowei(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "28婚礼频道广告位模块",priority=30)
//    public  void hunlipindaoguanggaowei() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.hunlipindaoguanggaowei(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "29糖豆页广告位模块",priority=31)
//    public  void tangdouyeguanggaowei() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.tangdouyeguanggaowei(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "30案例广告位模块",priority=32)
//    public  void anliguanggaowei() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.anliguanggaowei(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "31商品广告位模块",priority=33)
//    public  void shangpinguanggaowei() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.shangpinguanggaowei(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "32商城tab广告位模块",priority=34)
//    public  void shangchengtabguanggaowei() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.shangchengtabguanggaowei(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "33外漏筛选词模块",priority=35)
//    public  void wailoushaixuanci() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.wailoushaixuanci(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "34搜索页广告位模块",priority=36)
//    public  void sousuoyeguanggaowei() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.sousuoyeguanggaowei(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 商户管理模块
//     *
//     * */
//    @Test(description = "35商户列表模块",priority=37)
//    public  void shanghuliebiao() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.shanghuliebiao(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "36服务项管理模块",priority=38)
//    public  void fuwuxiangguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.fuwuxiangguanli(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "37待完善商户模块",priority=39)
//    public  void daiwanshanshanghu() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.daiwanshanshanghu(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 用户管理模块
//     *
//     * */
//    @Test(description = "38用户列表模块",priority=40)
//    public  void yonghuliebiao() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.yonghuliebiao(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 订单管理模块
//     *
//     * */
//    @Test(description = "39订单录入管理模块",priority=41)
//    public  void dingdanluruguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.dingdanluruguanli(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "40预约用户管理模块",priority=42)
//    public  void yuyueyonghuguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.yuyueyonghuguanli(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 单品管理模块
//     *
//     * */
//    @Test(description = "41单品列表模块",priority=43)
//    public  void danpinliebiao() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.danpinliebiao(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 套餐管理模块
//     *
//     * */
//    @Test(description = "42套餐列表模块",priority=44)
//    public  void taocanliebiao() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.taocanliebiao(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 商机管理模块
//     *
//     * */
//    @Test(description = "43商机列表模块",priority=45)
//    public  void shangjiliebiao() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.shangjiliebiao(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "44潜在商机表模块",priority=46)
//    public  void qianzaishangjibiao() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.qianzaishangjibiao(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 预约管理模块
//     *
//     * */
//    @Test(description = "45预约监控模块",priority=47)
//    public  void yuyuejiankong() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.yuyuejiankong(ThreadDriver.get(),username,passwd);
//
//    }
//
//
//    /*
//     * 电话预约管理模块
//     *
//     * */
//    @Test(description = "46预约用户监控模块",priority=48)
//    public  void yuyueyonghujiankong() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.yuyueyonghujiankong(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 私信管理模块
//     *
//     * */
//    @Test(description = "47私信监控模块",priority=49)
//    public  void sixinjiankong() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.sixinjiankong(ThreadDriver.get(),username,passwd);
//
//    }
//    @Test(description = "48私信工具模块",priority=50)
//    public  void sixingongju() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.sixingongju(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 活动管理模块
//     *
//     * */
//    @Test(description = "49活动列表模块",priority=51)
//    public  void huodongliebiao() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.huodongliebiao(ThreadDriver.get(),username,passwd);
//
//    }
//
//    /*
//     * 糖豆页管理模块
//     *
//     * */
//    @Test(description = "50频道页管理模块",priority=52)
//    public  void pindaooyeguanli() throws Exception{
//        PlatformCheck PlatformCheck = PageFactory.initElements(ThreadDriver.get(),PlatformCheck.class);
//        PlatformCheck.pindaooyeguanli(ThreadDriver.get(),username,passwd);

//    }



}
